"use strict";
var toTopBtn = document.querySelector(".toTop"),
    top_1Btn = document.querySelector(".top_1");
window.onscroll = function () {
    console.log(11);
    var o = document.documentElement.scrollTop || document.body.scrollTop;
    console.log(o),
        400 <= o ? (top_1Btn.style.top = "400px",
            toTopBtn.style.display = "block") : (top_1Btn.style.top = "600px", toTopBtn.style.display = "none")
},
    toTopBtn.onclick = function () {
        window.scrollTo({
            top: 110, behavior: "smooth"
        }
        )
    };